home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP: turbo c++ 3.1: owl.h not finding WIN30 or WIN31 defined <?>
- Date: 11 Feb 1996 22:51:33 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4flrtl$9q1@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe13.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 10, 1996 06:07:59 in article <HELP: turbo c++ 3.1: owl.h not
- finding WIN30 or WIN31 defined <?>>, 'maclucas@teleport.com (Malcolm B.
- MacLucas)' wrote:
-
-
- >Ok, here's the the situation
- >
- >I got this for christmas a couple of years ago, and put it away. I
- couldn't
- >remember why. Now I'm trying to use the product again and now I know why
- I
- >put
- >it away in the first place. When I try to use the tutorial, turbo 3.1
- wants a
- >
- >
- >#include <owl.h> as the first line
- >
- >however, when I try to run the program, I get an error from the owl.h in
- this
- >code.
- >
- >#if !defined(WIN30) && !defined(WIN31)
- >#error OWL must be built with WIN30 or WIN31 (or both) defined.
- >#endif
- >
- >
- >does any one know what I'm talking about? what do I need to do
- differently?
- >has anyone else run into this problem with borland turbo c++ 3.1?
- >
-
- Yes. The upgrade from Windows 3.0 to 3.1 was a quite a jump --
- new API functions implemented and behavior changed on others.
- When BC3.1 was released, there were still lots of Windows 3.0
- systems around and Borland wanted BC3.1 users to be able to take
- advantage of the new 3.1 features as well as building backward-
- compatible executables. To specify which platform the executable
- being built was targeted, Borland adopted the use of a preprocessor
- macro.
-
- So, the bottom line is, since nobody (of any significance) still runs
- Windows 3.0, opt for the 3.1 API. You can #define WIN31 in each
- source or header file using OWL, or you can choose the defined
- it as an option in the IDE. I don't remember how exactly the
- latter is accomplished, but look around the options. It should
- be somewhere. If not, resort to the first method.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-